package de.szut.invaders.view;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

public class GameListener implements KeyListener{

	@Override
	public void keyPressed(KeyEvent arg0) {
		switch (arg0.getKeyCode()) {
			case(17): {
				//rocket
			}
			case(32): {
				//shoot
			}
			case(65): {
				//left
			}
			case(68): {
				//right
			}
			case(83): {
				//back
			}
			case(87): {
				//forward
			}
		}
		
	}

	@Override
	public void keyReleased(KeyEvent arg0) {
		System.out.println(arg0.getKeyCode());
		
	}

	@Override
	public void keyTyped(KeyEvent arg0) {
	}
	
	
}
